package com.example.rest.job;

import com.alibaba.fastjson.JSONObject;
import com.example.base.jdbc.DBSql;
import com.example.base.jdbc.model.RowMap;
import com.example.base.job.IJob;
import com.example.base.job.IJobMap;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class TestJob implements IJob {
    @Override
    public String getDesc() {
        return null;
    }

    @Override
    public void exec(IJobMap iJobMap) {
//       List<RowMap> rowMapList=DBSql.getRowMaps("select * from wx_shop");
//       log.info(JSONObject.toJSONString(rowMapList));
       log.info("testJob执行了");
    }

    @Override
    public String getJobName() {
        return null;
    }
}
